package com.example.demo.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;

/**
 * @author HL
 */
@Data
@TableName("users")
public class User implements Serializable {
    private Integer uid;
    private String account;
    private String username;
    private String password;
    private String email;
    private String avatar;

    public User(String account, String password) { this.account = account; this.password = password; }
    public User(String account, String username, String password, String email, String avatar) {
        this.account = account;
        this.username = username;
        this.password = password;
        this.email = email;
        this.avatar = avatar;
    }

    public User(Integer uid, String account, String username, String password, String email, String avatar) {
        this.uid = uid;
        this.account = account;
        this.username = username;
        this.password = password;
        this.email = email;
        this.avatar = avatar;
    }
}